//
//  HJChatGroupModel.h
//  KaiChat
//
//  Created by lx on 2023/10/23.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface HJChatGroupModel : NSObject

@property (nonatomic, copy) NSString *groupId;
@property (nonatomic, copy) NSString *name;
@property (nonatomic, copy) NSString *avatar;
@property (nonatomic, copy) NSString *notice;
@property (nonatomic, copy) NSString *groupOwner;
@property (nonatomic, copy) NSString *intro;
@property (nonatomic, copy) NSString *createTime;
@property (nonatomic, copy) NSString *extension;

@property (nonatomic, strong) NSNumber *openVerify;//1开启, 2禁用
@property (nonatomic, strong) NSNumber *hasApply;

@property (nonatomic, strong) NSNumber *hasJoin;

@property (nonatomic, strong) NSNumber *showNotice;
@property (nonatomic, strong) NSNumber *status;
@property (nonatomic, assign) NSInteger groupStatus;
@property (nonatomic, assign) NSInteger userStatus; //0非成员 1正常 2 被踢 3 申请中
@property (nonatomic, strong) NSNumber *isTop;
@property (nonatomic, strong) NSNumber *isMute;
@property (nonatomic, strong) NSNumber *role;
@property (nonatomic, strong) NSNumber *memberNums;

@property (nonatomic, strong) NSNumber *type;
@property (nonatomic, strong) NSNumber *managerLimit;
@property (nonatomic, strong) NSNumber *maxMemberNums;
@property (nonatomic, strong) NSArray *abilities;  // 1 发照片 2 拍照 3 发送文件 4 发送名片

@property (nonatomic, strong) NSArray *userList;
@property (nonatomic, strong) NSArray *administratorList;
@property (nonatomic, strong) NSAttributedString *searchAttributedString;

+ (HJChatGroupModel *)groupModelWithDict:(NSDictionary *)dict;
+ (HJChatGroupModel *)modelWithBlock:(void (^)(HJChatGroupModel *model))block;

@end

NS_ASSUME_NONNULL_END
